package com.xingda.packing.rule.check;

import com.xingda.packing.domain.ProductBox;
import org.springframework.stereotype.Component;

@Component
public class SolderNumCheck2 implements PackRuleCheckService {
    @Override
    public boolean inspect(ProductBox productBox) {

        if (productBox.getType() == 2) {
            return true;
        }

        if (productBox.getType() == 5) {
            return true;
        }
        //如果没开启
        if (productBox.isFloorAnewNumEnable()) {
            return true;
        }
        return productBox.isFloorSolderLessThanMaxIncludeCheck();
    }
}
